package graphics;

import java.util.ArrayList;

import models.GeneralObject;

import android.graphics.Canvas;

/**
 *
 * @author Merete, Mirna, Esben, Knut og Stian
 *
 */
public class Painter {

	private ArrayList<GeneralObject> objects;

	public Painter(ArrayList<GeneralObject> list){
		objects = list;
	}

	//Ask all the different objects to draw themselves
	public void draw(Canvas canvas){
		for (GeneralObject ob : objects) {
			if(ob.isActive()){
				ob.draw(canvas);
			}
		}
	}


}
